<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@ taglib  uri="http://java.sun.com/jsp/jstl/core"  prefix="c" %>  
<%@ taglib  uri="http://java.sun.com/jsp/jstl/functions"  prefix="fn" %> 
<script type="text/javascript" src="<%=request.getContextPath() %>/My97DatePicker/WdatePicker.js"></script>
<link    rel="stylesheet"    href="<%=request.getContextPath() %>/css/index3.css"  type="text/css">
<script type="text/javascript"  src="<%=request.getContextPath() %>/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript"  src="<%=request.getContextPath() %>/js/jquery.validate.js"></script> 
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<script type="text/javascript">
function toupdate(mid) {
	
	location.href="/toupdate.do?mid="+mid
	
	
	
}
</script>


<form action="/findall.do" method="post">
<table>
	<tr>
		<td>
		<input type="text" name="mname" value="${map.mname }"  ><input type="submit" value="搜索">
		</td>
	</tr>
</table>
</form>
<table>

<input type="button" value="添加"  onclick="location='/findcate.do'">
<tr>
<td></td>
	<td>编号</td>
	<td>电影名</td>
	<td>介绍</td>
	<td>导演</td>
	<td>上映日期</td>
	<td>分类</td>
</tr>
<c:forEach items="${list }" var="m">


<tr>
	<td><input type="checkbox" value="${m.mid }"></td>
	<td>${m.mid }</td>
	<td>${m.mname }</td>
	<td>${m.jieshao }</td>
	<td>${m.daoyan }</td>
	<td>${m.datea }</td>
	<td>${m.cnames }</td>
	<td><input type="button" value="修改" onclick="toupdate(${m.mid})"></td>
	
</tr>
</c:forEach>
</table>

</body>
</html>